﻿using System.Net.Http;
using TeBigScreen.Common;

namespace TeBigCoreApi
{
    public partial class TeBigCoreService
    {
        private static HttpClient httpClient = new HttpClient();

        public static TeBigCoreServiceDept Dept { get; }
            = new TeBigCoreServiceDept(httpClient) { BaseUrl = $"http://{Config.Default.Common.Service}" };

        public static TeBigCoreServiceCase Case { get; }
            = new TeBigCoreServiceCase(httpClient) { BaseUrl = $"http://{Config.Default.Common.Service}" };

        public static TeBigCoreServiceToday Today { get; }
            = new TeBigCoreServiceToday(httpClient) { BaseUrl = $"http://{Config.Default.Common.Service}" };
    }
}